package com.yunji.order.mapper;

import com.github.yulichang.base.MPJBaseMapper;
import com.yunji.common.annotation.DataScope;
import com.yunji.order.domain.OrderDO;
import com.yunji.order.dto.OrderParam;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.order.mapper
 * @Title: TradeOrderMapper
 * @Description: 交易订单数据交互
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-04-10 14:13:19      V1.0        HuaAo       新建类
 */
public interface IOrderMapper extends MPJBaseMapper<OrderDO> {

//    @DataScope
//    @Select({"<script>SELECT DISTINCT ${searchFiled} FROM t_order o where 1=1  ",
//            "<if test='siteName != null'>AND o.site_name LIKE concat('%',#{siteName},'%')</if>",
//            "<if test='containerName != null'>AND o.container_name LIKE concat('%',#{containerName},'%')</if>",
//            "<if test='memberName != null'>AND o.member_name LIKE concat('%',#{memberName},'%')</if>",
//            "<if test='memberPhone != null'>AND o.member_phone LIKE concat('%',#{memberPhone},'%')</if>",
//            "<if test='productName != null'>AND o.product_name LIKE concat('%',#{productName},'%')</if></script>"})
//    List<String> searchTableFiled(OrderParam param);
}
